//app.js
App({


  onLaunch: function () {
    // 读取本地用户信息(storage)到全局变量，并设置登陆状态
      var that=this
      wx.getStorage({
        key: "userInfo",
        success: function (res) {
          
           if (res.data != null && res.data != [] && res.data != ""){
             that.globalData.userInfo = res.data
           }

        },
      })

  },
  
  globalData: {
    "serDomain": "http://wxapp.ja-h2.cn",
    "userInfo": null,
  },
 
})